package com.chdwmp.product.enums;


public enum BusinessScenarioEnum {

    PRODUCT_ORDER_PAY(0, "产品支付")
    ;

    public Integer businessScenarioType;
    public String businessScenarioName;

    BusinessScenarioEnum(Integer businessScenarioType, String businessScenarioName) {
        this.businessScenarioType = businessScenarioType;
        this.businessScenarioName = businessScenarioName;
    }

    public Integer getBusinessScenarioType() {
        return businessScenarioType;
    }

    public String getBusinessScenarioName() {
        return businessScenarioName;
    }



    public static com.chdwmp.product.enums.BusinessScenarioEnum getByCode(int code) {
        for (com.chdwmp.product.enums.BusinessScenarioEnum value : com.chdwmp.product.enums.BusinessScenarioEnum.values()) {
            if (value.getBusinessScenarioType() == code) {
                return value;
            }
        }
        return null;
    }
}
